<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>狂神说</title>
    <!--1.导入vue.js-->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>

</head>
<body>

<div id="app">
    输入的文本: <input type="text" v-model="message"> {{message}}
    <br><br>
    性别：
    <input type="radio" name="sex" value="男" v-model="qinjiang"> 男
    <input type="radio" name="sex" value="女" v-model="qinjiang"> 女
    <br>
    <p>
        选中了谁：{{qinjiang}}
    </p>
    <br><br>
    
    下拉框：
    <select v-model="selected">
        <option value="" disabled>--请选择--</option>
        <option>A</option>
        <option>B</option>
        <option>C</option>
    </select>
    <span>选中了谁：{{selected}}</span>
</div>

<script>
    let app = new Vue({
        el: '#app',
        data: {
            message: '123',
            qinjiang: '',
            selected: ''
        },
        methods: {//所有方法定义在methods里面

        },
    });
</script>

</body>
</html>